package com.github.mapboxdemo;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

/**
 * Created by Administrator on 2017/1/18 0018.
 */

public class MenuActivity extends AppCompatActivity {
    private Button vectorMap;
    private Button WmsMap;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_menu_layout);

        vectorMap=(Button)findViewById(R.id.vector_map);
        WmsMap=(Button)findViewById(R.id.wms_map);

        vectorMap.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(getApplicationContext(),MainActivity.class));
            }
        });

        WmsMap.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(getApplicationContext(),WmsActivity.class));
            }
        });
    }
}
